<div class="container">
    <div class="col-sm-12">
        <table class="table table-bordered">
            <h3 class='index_tilte'><p class="text-center">会议室使用情况</p></h3>
            <tr class="th">
                <td widtd="10%">序号</td>
                <td widtd="20%">日期</td>
                <td widtd="15%">开始时间</td>
                <td widtd="15%">结束时间</td>
                <td widtd="20%">场地</td>
                <td widtd="20%">姓名</td>
            </tr>
            <?php foreach (select_record_meeting_room() as $key => $value): ?>
                <tr>
                    <td><?php echo $key + 1; ?></td>
                    <td><?php echo htmlspecialchars($value['date']); ?></td>
                    <td><?php echo htmlspecialchars($value['start'] . ':00'); ?></td>
                    <td><?php echo htmlspecialchars($value['end'] . ':00'); ?></td>
                    <td>
                        <?php
                        switch ($value['place']) {
                            case 1: echo '会议室1（左边）';
                                break;
                            case 2: echo '会议室2（右边）';
                                break;
                        }
                        ?>
                    </td>
                    <td><?php echo htmlspecialchars($value['leader']); ?></td>
                </tr>
            <?php endforeach; ?>
        </table>
    </div>
</div>
